<?php

namespace App\Api\Controllers;

use App\Models\Notice;
use Illuminate\Http\Request;

class NoticesController extends Controller
{
    public function index(Notice $notice){
        return $this->success($notice->orderBy('sort','desc')->get());
    }

    public function show(Notice $notice){
        return $this->success($notice);
    }
}
